package com.study.dao;

import com.study.utils.SpringContextHolder;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * Created by think on 2016/4/23.
 */
@Repository
public class StudentDao {
    @Resource
    private SqlSessionTemplate sqlSessionTemplate;

    public void addStudent() {
        sqlSessionTemplate.insert("com.study.domain.Student.addStudent");
    }
}
